package com.icehand.proxy.demo.stat;

import com.icehand.proxy.demo.impl.Behavior;

/**
 * @author icehand
 */
public class StaticProxy implements Behavior {
    private Behavior behavior;

    public StaticProxy(Behavior behavior){
        this.behavior = behavior;
    }

    @Override
    public void say() {
        //可以在调用前后做一些操作
        System.out.println("this is static proxy");
        this.behavior.say();
    }
}
